package com.zlzxm.shoesmarket.net.repository;

import com.zlzxm.shoesmarket.net.RetrofitClient;
import com.zlzxm.shoesmarket.net.api.RecordApi;
import com.zlzxm.shoesmarket.net.respone.BaseResponse;

import io.reactivex.rxjava3.core.Observable;

/**
 * CREATE BY zlzxm ON 2021/6/4
 */
public class RecordRepository {

    RecordApi recordApi = RetrofitClient.create(RecordApi.class);

    public Observable<BaseResponse<String>> listIn(String pageNum,String pageSize){

        return recordApi.list(pageNum,pageSize,"0");
    }

    public Observable<BaseResponse<String>> listOut(String pageNum,String pageSize){

        return recordApi.list(pageNum,pageSize,"1");
    }
}
